package org.springcloud.catalina.eurekafeign.service;

import org.springcloud.catalina.eurekafeign.service.serviceImpl.HelloServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-hello", fallback = HelloServiceImpl.class)
public interface HelloService {

    @RequestMapping(value = "/hello/{name}", method = RequestMethod.POST)
    String hello(@PathVariable("name") String name);
}
